package com.yfp.org.service.impl;

import com.yfp.org.domain.dto.ClientTypeDTO;
import com.yfp.org.domain.entity.OrderCombo;
import com.yfp.org.mapper.OrderComboMapper;
import com.yfp.org.service.OrderComboService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (OrderCombo)表服务实现类
 *
 *
 * @since 2024-01-26 19:35:16
 */
@Service("orderComboService")
public class OrderComboServiceImpl implements OrderComboService {

    @Resource
    private OrderComboMapper orderComboMapper;

    /**
     * 新增数据
     *
     * @param orderCombo 实例对象
     * @return 实例对象
     */
    @Override
    public OrderCombo insert(OrderCombo orderCombo) {
        this.orderComboMapper.insert(orderCombo);
        return orderCombo;
    }

    @Override
    public List<ClientTypeDTO> getClientTypeCount() {
        List<ClientTypeDTO> clientTypeCount = orderComboMapper.getClientTypeCount();
        return clientTypeCount;
    }


}
